package com.tyk.bookstore.back.order.model.result;


import com.tyk.bookstore.back.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description 订单异常枚举
 */
public enum OrderResultEnum implements ResultEnum {

    ORDER_NOT_FOUND(3_07_01_01, "订单不存在"),
    ORDER_ADDRESS_UPDATE_NOT_ALLOWED(3_07_01_02, "当前订单不支持修改收货地址");

    private final Integer code;
    private final String msg;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    OrderResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
